package org.smvcd1.controller1;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/test2")
public class Test2Controller  {

@RequestMapping("/index2")//访问这个方法
    public ModelAndView index2(){
        return new ModelAndView("/test2");
    }


    @RequestMapping("/index3")//访问这个方法
    public ModelAndView index3(){
        return new ModelAndView("/test3");
    }
}
